﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Threading;

namespace stopwatch
{
    class Program
    {
        static void Main(string[] args)
        {
            Stopwatch secundomer = new Stopwatch();         
            string choice;
            Console.WriteLine("Please, enter \"Start\" to start stopwatch. \"Stop\" - to stop the timer. \"Reset\" - to reset the time calcualting.\n\"Exit\" - to exit the stopwatch.");
            choice = Console.ReadLine().ToLower();
            do
            {   
                if (choice == "start")
                {
                    secundomer.Starting();
                    choice = Console.ReadLine().ToLower();
                }

                if (choice == "stop")
                {
                    secundomer.Stopping();
                    choice = Console.ReadLine().ToLower();
                }

                if (choice == "reset")
                {
                    secundomer.Reset();
                    choice = Console.ReadLine().ToLower();
                }

                if(choice!= "start" && choice != "stop" && choice != "reset")
                {
                    Console.WriteLine("Choose something!!!!");
                    choice = Console.ReadLine().ToLower();
                }
                
            } while (choice != "exit");
            

        }
    }
}
